﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;

namespace Ch09Ex01
{
   public abstract class MyBase {}

   internal class MyClass : MyBase {}

   public interface IMyBaseInterface {}

   internal interface IMyBaseInterface2 {}

   internal interface IMyInterface : IMyBaseInterface, IMyBaseInterface2 {}
    //定义类可以继承多个接口，但是只能继承一个基类
   internal sealed class MyComplexClass : MyClass, IMyInterface {}

   class Program
   {
      static void Main(string[] args)
      {
         ///<summary>
         ///This class contains my program!
         ///</summary>>
         MyComplexClass myObj = new MyComplexClass();
         WriteLine(myObj.ToString());
         ReadKey();
      }
   }
}
